﻿using System;
using System.Globalization;
using System.Windows;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Media;

namespace PoESsb.View.Converters
{
    public class ItemExplicitModsToFormattedRunConverter : IValueConverter
    {
        public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            string mod = value as string;
            return new FlowDocument(new Paragraph(new Run(mod) { Foreground = Brushes.Turquoise, BaselineAlignment = BaselineAlignment.Center }));
        }

        public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
        {
            throw new NotImplementedException();
        }
    }
}

